<template>
  <div id="app">
    <div class="box">
      <el-container>
        <el-header height="120px" v-if="this.$route.meta.show != 2">

          <Head></Head>
        </el-header>
        <el-container>
          <el-aside width="330px" v-if="this.$route.meta.show != 2">
            <LeftWrap></LeftWrap>
          </el-aside>
          <el-main>
            <RightWrap></RightWrap>
          </el-main>
        </el-container>
      </el-container>
    </div>
  </div>
</template>

<script>


import Head from "./components/Head.vue"
import RightWrap from "./components/contenter/RightWrap.vue"
import LeftWrap from "./components/contenter/LeftWrap.vue"
import { Container, Header, Main, Aside } from "element-ui"
export default {
  mounted() {
    // 通过$route可以获取路由上的信息
    console.log(this.$route);
  },
  name: 'App',
  components: {
    Head,
    RightWrap,
    LeftWrap,
    "el-container": Container,
    "el-header": Header,
    "el-main": Main,
    "el-aside": Aside
  },

}
</script>

<style lang="scss" scoped>
* {
  text-align: left;
}

.el-header,
.el-footer {
  background-color: #B3C0D1;
  color: #333;
  line-height: 60px;
}

.el-header>div {
  height: 100%;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  line-height: 200px;
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
}

body>.el-container {
  margin-bottom: 0px;
}

header,
main {
  padding: 0;
  box-sizing: border-box;
}


html,
body,
div,
.el-container {
  height: 100%;
}
</style>
